/*
 * @Description: 建模页面绑定 API
 * @Author: zhuoda
 * @Date: 2024-03-21
 * @LastEditTime: 2024-03-21
 * @LastEditors: zhuoda
 */
import {postRequest, getRequest} from '/@/lib/axios';

export const pageApi = {
  // 查询建模页面绑定列表 @author zhuoda
  listPage: (param) => {
    return postRequest('/flowable/page/list', param);
  },

  // 查询建模页面绑定详细 @author zhuoda
  getPage: (id) => {
    return getRequest(`/flowable/page/${id}`);
  },

  // 建模页面绑定 @author zhuoda
  bindPage: (param) => {
    return postRequest('/flowable/page/bind', param);
  },

  // 删除建模页面绑定 @author zhuoda
  deletePage: (id) => {
    return getRequest(`/flowable/page/${id}`);
  },

  // 查询绑定表单(单页面) @author zhuoda
  findPage: (param) => {
    return postRequest('/flowable/page/findPage', param);
  },

  // 查询绑定表单(模块，流程标识下一组页面) @author zhuoda
  findModulePages: (param) => {
    return postRequest('/flowable/page/findModulePage', param);
  }
};
